﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace _8Group.MES.Model.DV设备管理
{
    /// <summary>
    /// 设备点检记录表模型类
    /// </summary>
    public class DV_Check_Record : Entity<int>
    {
        /// <summary>
        /// 计划ID
        /// </summary>
        public string? PlanId { get; set; } = string.Empty;

        /// <summary>
        /// 计划编号
        /// </summary>
        public string? PlanCode { get; set; } = string.Empty;

        /// <summary>
        /// 计划名称
        /// </summary>
        public string? PlanName { get; set; } = string.Empty;

        /// <summary>
        /// 计划类型
        /// </summary>
        public string? PlanType { get; set; } = string.Empty;

        /// <summary>
        /// 设备ID
        /// </summary>
        public int MachineryId { get; set; }

        /// <summary>
        /// 设备编码
        /// </summary>
        public string MachineryCode { get; set; } = string.Empty;

        /// <summary>
        /// 设备名称
        /// </summary>
        public string? MachineryName { get; set; } = string.Empty;

        /// <summary>
        /// 品牌
        /// </summary>
        public string? MachineryBrand { get; set; } = string.Empty;

        /// <summary>
        /// 规格型号
        /// </summary>
        public string? MachinerySpec { get; set; } = string.Empty;

        /// <summary>
        /// 点检时间
        /// </summary>
        public DateTime CheckTime { get; set; }

        /// <summary>
        /// 状态（PREPARE：草稿；APPROVING：审核中；FINISHED：已完成；CONFIRMED：已确认）
        /// </summary>
        public string Status { get; set; } = "PREPARE";

        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; } = string.Empty;

        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreateBy { get; set; } = string.Empty;

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 更新人
        /// </summary>
        public string? UpdateBy { get; set; } = string.Empty;

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
    }
}
